Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: port alias validation and operation record message handling #1441

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

zzzhangqi
Copy link
Contributor

src/pages/Component/port.js:

  • Update regex pattern to only allow uppercase letters and underscores
  • Fix port alias validation rules

src/pages/Component/component/Basic/operationRecord.js:

  • Add null check for message matching in jumpMessage function
  • Fix TypeError when message regex match fails
  • Improve error handling for empty messages

Changes:

  • Updated port alias validation regex from /^[A-Z][A-Z0-9]*$/ to /^[A-Z][A-Z_]*$/
  • Added null check before accessing message[1] in jumpMessage function
  • Improved error handling for message parsing

@zzzhangqi zzzhangqi merged commit b22ed07 into goodrain:main Dec 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant