gocodebox / gocodebox/lifterlms

[Quiz] Should fill in the blanks answers be trimmed?

Open
#759 1 comment 0 reactions 0 assignees View on GitHub
good first issue hacktoberfest help wanted Type: Bug
Dominant language
PHP
Stars
212
Forks
140
Avg merge
2d 14h
Merged PRs (30d)
19

Description

@thomasplevy A user reports issues with inadvertently typed spaces around the fill in the blank answer. Would it make sense to trim the answer here https://github.com/gocodebox/lifterlms/blob/277df93ba23939839c8a42e2be863ce7805e9ba4/includes/class.llms.ajax.handler.php#L567?

Would this affect other question types to only do this for fill in the blank type questions or a simple `trim( $request[ 'answer' ] )` is sufficient here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.