(maybe) Fix bug

This commit is contained in:
syuilo 2017-02-28 21:00:59 +09:00
parent 75a7ad9dae
commit e915b46c65
2 changed files with 14 additions and 1 deletions

View file

@ -189,6 +189,7 @@ const elements = [
}
if (thisIsNotARegexp) return null;
if (regexp == '') return null;
if (regexp[0] == ' ' && regexp[regexp.length - 1] == ' ') return null;
return {