Minor improvement.

This commit is contained in:
claustromaniac 2017-12-13 11:47:39 +00:00
parent f07bbb6c85
commit e3b8d0955b

View File

@ -30,8 +30,8 @@ SETLOCAL DisableDelayedExpansion
SET "_line=%%H"
SETLOCAL EnableDelayedExpansion
SET "_pref=!_line: =!"
FOR /F "delims=," %%X IN ("!_pref!") DO ( SET "_pref=%%X" )
IF /I "user_pref"=="!_pref:~0,9!" (
FOR /F "delims=," %%X IN ("!_pref!") DO ( SET "_pref=%%X" )
SET _pref=!_pref:"=""!
FIND /I "!_pref!" user.js >nul
IF ERRORLEVEL 1 (