summaryrefslogtreecommitdiff
path: root/src/text/parse/elements/search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/text/parse/elements/search.ts')
-rw-r--r--src/text/parse/elements/search.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/text/parse/elements/search.ts b/src/text/parse/elements/search.ts
deleted file mode 100644
index e5d9b9f0c2..0000000000
--- a/src/text/parse/elements/search.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Search
- */
-
-export type TextElementSearch = {
- type: 'search'
- content: string
- query: string
-};
-
-export default function(text: string) {
- const match = text.match(/^(.+?) 検索(\n|$)/);
- if (!match) return null;
- return {
- type: 'search',
- content: match[0],
- query: match[1]
- };
-}