SAP-BTP-Spielwiese/app1/node_modules/validator/es/lib/isMultibyte.js
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

10 lines
No EOL
252 B
JavaScript

import assertString from './util/assertString';
/* eslint-disable no-control-regex */
var multibyte = /[^\x00-\x7F]/;
/* eslint-enable no-control-regex */
export default function isMultibyte(str) {
assertString(str);
return multibyte.test(str);
}