pull/6/head
yuanguangxin 5 years ago
parent 44a5919c0b
commit 069098e968

@ -378,10 +378,10 @@
<screen x="0" y="0" width="1440" height="900" />
</state>
<state x="533" y="166" key="#com.intellij.ide.util.MemberChooser/0.0.1440.900@0.0.1440.900" timestamp="1578548165321" />
<state x="303" y="50" key="CommitChangelistDialog2" timestamp="1581704713389">
<state x="303" y="50" key="CommitChangelistDialog2" timestamp="1581705212653">
<screen x="0" y="0" width="1440" height="900" />
</state>
<state x="303" y="50" key="CommitChangelistDialog2/0.0.1440.900@0.0.1440.900" timestamp="1581704713389" />
<state x="303" y="50" key="CommitChangelistDialog2/0.0.1440.900@0.0.1440.900" timestamp="1581705212653" />
<state x="144" y="78" key="DiffContextDialog" timestamp="1581704720088">
<screen x="0" y="0" width="1440" height="900" />
</state>
@ -430,10 +430,10 @@
<screen x="0" y="0" width="1440" height="900" />
</state>
<state x="221" y="63" key="SettingsEditor/0.0.1440.900@0.0.1440.900" timestamp="1581061096545" />
<state x="320" y="190" key="Vcs.Push.Dialog.v2" timestamp="1581704721326">
<state x="320" y="190" key="Vcs.Push.Dialog.v2" timestamp="1581705214502">
<screen x="0" y="0" width="1440" height="900" />
</state>
<state x="320" y="190" key="Vcs.Push.Dialog.v2/0.0.1440.900@0.0.1440.900" timestamp="1581704721326" />
<state x="320" y="190" key="Vcs.Push.Dialog.v2/0.0.1440.900@0.0.1440.900" timestamp="1581705214502" />
<state x="378" y="207" width="683" height="486" key="find.popup" timestamp="1581572590737">
<screen x="0" y="0" width="1440" height="900" />
</state>

@ -5,7 +5,9 @@ package q10;
*/
public class Solution {
public boolean isMatch(String text, String pattern) {
if (pattern.isEmpty()) return text.isEmpty();
if (pattern.isEmpty()){
return text.isEmpty();
}
boolean firstMatch = (!text.isEmpty() &&
(pattern.charAt(0) == text.charAt(0) || pattern.charAt(0) == '.'));

Loading…
Cancel
Save