Skip to content

Commit

Permalink
Merge pull request #11214 from keymanapp/chore/developer/recognize-ke…
Browse files Browse the repository at this point in the history
…yboard3-xml

chore(developer): use keyboard3 tag rather than DTD to identify LDML keyboard xml files
  • Loading branch information
mcdurdin committed Apr 12, 2024
2 parents f3b6604 + 41e16b3 commit 29420f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/web/types/src/kpj/keyman-developer-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class KeymanDeveloperProject {
try {
const data = this.callbacks.loadFile(fullPath);
const text = new TextDecoder().decode(data);
if(!text?.match(/ldmlKeyboard3\.dtd/)) {
if(!text?.match(/<keyboard3/)) {
// Skip this .xml because we assume it isn't really a keyboard .xml
continue;
}
Expand Down

0 comments on commit 29420f7

Please sign in to comment.