From 16593408981d59e1bd3ad4de14071f45a8116d81 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 23 Nov 2019 21:48:24 -0500 Subject: Add support for prefix wildcards --- ext/mixed/js/core.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/mixed/js') diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js index f0c04457..b9536391 100644 --- a/ext/mixed/js/core.js +++ b/ext/mixed/js/core.js @@ -118,6 +118,10 @@ function toIterable(value) { throw new Error('Could not convert to iterable'); } +function stringReverse(string) { + return string.split('').reverse().join('').replace(/([\uDC00-\uDFFF])([\uD800-\uDBFF])/g, '$2$1'); +} + /* * Async utilities -- cgit v1.2.3