Skip to content

Commit

Permalink
fixup! Made script detection regex more readable 📚
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Wojciechowski committed Oct 21, 2016
1 parent 9b179e0 commit 385bc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/util/script_detection.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const isVerticalWritingModeRegExp = new RegExp([
const verticalRegExp = new RegExp([
'[ᄀ-ᇿ]',
'[가-힣]',
'[ㄱ-ㆎ]',
Expand All @@ -18,5 +18,5 @@ const isVerticalWritingModeRegExp = new RegExp([
].join('|'));

module.exports.allowsVerticalWritingMode = function(input) {
return input.search(isVerticalWritingModeRegExp) !== -1;
return input.search(verticalRegExp) !== -1;
};

0 comments on commit 385bc23

Please sign in to comment.