diff --git a/src/extensions/string.ts b/src/extensions/string.ts
index 8e7be59..018b9ca 100644
--- a/src/extensions/string.ts
+++ b/src/extensions/string.ts
@@ -21,6 +21,7 @@ declare global {
startsWithVowel(): boolean;
removeMacra(): string;
capitalize(): string;
+ isCapitalized(): boolean;
}
}
@@ -50,3 +51,7 @@ String.prototype.removeMacra = function (): string {
String.prototype.capitalize = function (): string {
return (this.at(0) ?? '').toUpperCase().concat(this.slice(1));
};
+
+String.prototype.isCapitalized = function(): boolean {
+ return /[A-ZĀĒĪŌȲ]/.test(this.at(0) ?? '');
+}
diff --git a/src/facies/calculare.vue b/src/facies/calculare.vue
index 0fb5235..2b56f18 100644
--- a/src/facies/calculare.vue
+++ b/src/facies/calculare.vue
@@ -22,11 +22,11 @@
};
const actus: string[][] = [
- [ ' I ', ' C ', ' · ', ' + ' ],
- [ ' V ', ' D ', ' : ', ' - ' ],
- [ ' X ', ' M ', ' ∴ ', ' • ' ],
- [ ' L ', ' | ', ' × ', ' ÷ ' ],
- [ ' = ', ' N ', ' S ', ' % ' ]
+ [ 'I', 'C', '·', '+' ],
+ [ 'V', 'D', ':', '-' ],
+ [ 'X', 'M', '∴', '•' ],
+ [ 'L', '|', '×', '÷' ],
+ [ '=', 'N', 'S', '%' ]
];
export default defineComponent({
@@ -130,9 +130,9 @@