« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/Language.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/Language.js')
-rw-r--r--src/data/things/Language.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/data/things/Language.js b/src/data/things/Language.js
index 8b8c78b7..e69c9493 100644
--- a/src/data/things/Language.js
+++ b/src/data/things/Language.js
@@ -23,6 +23,14 @@ import {flag, name} from '#composite/wiki-properties';
 const languageOptionRegex = /{(?<name>[A-Z0-9_]+)}/g;
 
 export class Language extends Thing {
+  static {
+    // TODO: Don't hard-code these. Oh, you know...
+    Object.assign(this.prototype, {
+      splitDisjunctionList: /,| (?=hoặc)/,
+      splitConjunctionList: /,| (?=and)/,
+    });
+  }
+
   static [Thing.getPropertyDescriptors] = () => ({
     // Update & expose