Skip to content

Commit 101c637

Browse files
fix: regex in replaceFileContent for StyleGuideCheck (#89)
1 parent 8d5fb80 commit 101c637

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

files/configureFiles.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ sub configureUserAndCustomDictionaries
5656
system("mv $serverPath/CustDictConfig.xml $cust_dict_conf");
5757
}
5858

59-
replaceFileContent({ '<StyleGuideCheck Enabled="(true|false)">[\s]*?<DirectoryPath>[\w\\\/:]*?<\/DirectoryPath>[\s]*?<\/StyleGuideCheck>' =>
60-
"<StyleGuideCheck Enabled=\"true\">\n\t\t<DirectoryPath>$style_guide_path</DirectoryPath>\n\t</StyleGuideCheck>" }, $server_config_path);
59+
replaceFileContent({ '<StyleGuideCheck Enabled="(true|false)">[\s]*?<DirectoryPath>[\w\\\/:]*?<\/DirectoryPath>' =>
60+
"<StyleGuideCheck Enabled=\"true\">\n\t\t<DirectoryPath>$style_guide_path</DirectoryPath>" }, $server_config_path);
6161

6262
for my $file (<$serverPath/CustomDictionaries/*.txt>)
6363
{

0 commit comments

Comments
 (0)