fix(core): update

This commit is contained in:
2019-10-10 18:03:04 +02:00
parent 71fd0e614c
commit e773644256
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import * as plugins from './smartstring.plugins';
import * as base64 from './smartstring.base64';
export const isUtf8 = (stringArg: string) => {
const bytes = Buffer.from(stringArg);
@ -74,4 +75,8 @@ export const isUtf8 = (stringArg: string) => {
}
return true;
};
};
export const isBase64 = (stringArg: string) => {
return stringArg.endsWith('=');
};